#define externalTempPin 10  	//external DS18S20 pin (external temperature)
#define sprinklerD0 7			//digital pin for relay of sprinkler 1
#define sprinklerD1 6			//digital pin for relay of sprinkler 1
#define sprinklerD2 5			//digital pin for relay of sprinkler 1
#define sprinklerD3 4			//digital pin for relay of sprinkler 1

#define SP1 1
#define SP2 2
#define SP3 3
#define SP4 4

#define NO_ACTION 0
#define ACTIONED 1

#ifndef protocol_h
#define protocol_h
class protocol {
    private:
	   
    public:
		int cnt;
		char rxCommand;
		int addSprinkler;
		int valueSprinkler;
		char minuteSpinkler[3];
		int cntArray;
		int valMinutes;
        protocol();
		void miaoo();
        void start(long speed);
        void readMessage(char incoming);
		void sendExternalTemp();
        
};        
#endif





